package foo.bar.wiki.web.action.general;

import foo.bar.wiki.web.action.BaseActionBean;
import foo.bar.wiki.web.action.page.PageActionBean;
import foo.bar.wiki.radeox.DefaultWikiRenderEngine;
import foo.bar.wiki.domain.Page;
import foo.bar.radeox.api.engine.RenderEngine;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.integration.spring.SpringBean;
import net.sourceforge.stripes.util.UrlBuilder;

import java.util.Locale;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class WikiSyntaxHelpActionBean extends BaseActionBean {

    public static final String VIEW = "/general/wikiSyntaxHelp.jsp";


    @DefaultHandler
    public Resolution view() {
        return new ForwardResolution(generateThemePath(VIEW));
    }

    private RenderEngine renderEngine;


    @SpringBean("wikiSyntaxHelpExampleRenderEngine")
    public void setRenderEngine(RenderEngine renderEngine) {
        this.renderEngine = renderEngine;
    }

    public RenderEngine getRenderEngine() {
        return renderEngine;
    }

}
